package com.walleipt.demo.ioc.profile;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class AppConfig {
	
	@Profile("test")
	@Bean
	public DemoBean demoBeanTest() {
		return new DemoBean("test");
	}
	
	@Profile("dev")
	@Bean
	public DemoBean demoBeanDev() {
		return new DemoBean("dev");
	}
	
}
